package customerEnter.Frame.JDBCDao.UseQuery;

import java.util.List;

import customerEnter.Frame.DaoDataTransmission.DaoFramePameTransmission;
import customerEnter.Frame.JDBCDao.Interface.DaoFrameUseTypeInterface;

public class DaoFrameUseTypeBeanImpl implements DaoFrameUseTypeInterface<Object> {

	@SuppressWarnings("unchecked")
	@Override
	public <T, K> K useDaoFrameDataType(DaoFramePameTransmission<T, K> daoFramePameTransmission) {
		List<?> list = new DaoFrameUseTypeListTImpl().useDaoFrameDataType(daoFramePameTransmission);
		return (K) (list.size() > 0 ? list.get(0) : null);
	}

}
